package GUI;

import java.awt.*;

import javax.swing.JButton;

public class PanelFunctionFreeTable extends PanelFunctionsEmpty{
	
	
	private static final long serialVersionUID = 1L;
	private MainMenu mainMenu;
	private JButton button_Open_Table;
	private JButton change_Number_Table;
	
public PanelFunctionFreeTable(MainMenu mm)
{
	super();
	this.mainMenu=mm;
	this.add(get_button_Open_Table());
	this.add(get_button_change_Number_Table());
}
	
	
	
	
private JButton get_button_Open_Table() 
	{
		if (button_Open_Table == null) 
		{			
			button_Open_Table=new JButton("פתיחת שולחן");  			 
			button_Open_Table.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 15));
			button_Open_Table.setPreferredSize(new Dimension(220, 30));
			
			/*button_addEmployee.addActionListener(new java.awt.event.ActionListener() 
			   {
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					mainMenu.getContentPane().remove(((BorderLayout)mainMenu.getContentPane().getLayout()).getLayoutComponent(BorderLayout.CENTER));
					mainMenu.getContentPane().add(new PfAdd_new_employee(mainMenu), BorderLayout.CENTER);					
					mainMenu.getContentPane().validate();
					System.out.println("tables actionPerformed()"); 							
				}
			});*/
		}
		return button_Open_Table;
	}
	
	
	
	
private JButton get_button_change_Number_Table() 
	{
		if (change_Number_Table == null) 
		{			
			change_Number_Table=new JButton("שינוי מס' שולחן");  			 
			change_Number_Table.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 15));
			change_Number_Table.setPreferredSize(new Dimension(220, 30));
			
		/*	button_changeEmployee.addActionListener(new java.awt.event.ActionListener() 
			   {
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					System.out.println("tables actionPerformed()"); 							
				}
			});*/
		}
		return change_Number_Table;
	}
	

}



